Home:ALL Converter>How to get specific column data by searching a specific name in same table from two Data Base?

How to get specific column data by searching a specific name in same table from two Data Base?

Ask Time:2020-02-24T01:15:12         Author:Thushan Samarawickrama

Json Formatter

enter image description here

There are two schemas D1 and D2 which have the same table with different data called Hotels.

I need to get the data list of under 'Vista' name, ID,P-Email, D-Email, X-Email and Z-Email from those two tables. Primary Key is ID. What is the query for this?

Author:Thushan Samarawickrama,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60364766/how-to-get-specific-column-data-by-searching-a-specific-name-in-same-table-from
Nimasha Jayathunga :

USE D1;\nSelect ID, P-Email, D-Email, X-Email, Z-Email from Hotels where Name ='Vista';\n\nUSE D2;\nSelect ID, P-Email, D-Email, X-Email, Z-Email from Hotels where Name ='Vista';",
2020-02-23T17:24:15
yy